package com.rest.common.model;

public class RestResponse<T> extends Message {
    private T data;

    public RestResponse(T data) {
        this.data = data;
    }

    public RestResponse(boolean success, String msg, String code, T data) {
        super(success, msg, code);
        this.data = data;
    }

    public RestResponse(boolean success, String msg, T data) {
        super(success, msg);
        this.data = data;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
